.message-form-container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-form-container h3 {
    color: #333;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, 0.6);
}

.btn-primary {
    background-color: #428bca;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary:hover {
    background-color: #3071a9;
}

.messages-list {
    margin-top: 30px;
}

.messages-list h3 {
    color: #333;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.message-item {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.message-item:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.message-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.message-header {
    display: flex;
    align-items: center;
}

.message-nickname {
    font-weight: bold;
    color: #333;
}

.message-time {
    color: #999;
    font-size: 12px;
}

.message-content {
    color: #555;
    line-height: 1.6;
}

/* 移除邮箱显示 */
.message-email {
    display: none;
}

/* 回复按钮样式 */
.reply-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    align-self: flex-end;
}

.reply-btn:hover {
    background-color: #5a6268;
}

/* 评论表单样式 */
.comment-form {
    margin-top: 15px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.comment-form .form-group {
    margin-bottom: 15px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.comment-form .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.comment-form .btn-primary {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.comment-form .btn-primary:hover {
    background-color: #0056b3;
}

/* 实时验证样式 */
.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

/* 点赞功能样式 */
.like-container {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 16px;
    padding: 2px 5px;
    transition: color 0.3s;
}

.like-btn:hover {
    color: #ff4d4f;
}

.like-btn.liked {
    color: #ff4d4f;
}

.like-count {
    margin-left: 5px;
    color: #666;
    font-size: 14px;
}

.comment-form .form-group {
    margin-bottom: 10px;
}

.comment-form .form-control {
    padding: 8px;
    font-size: 14px;
}

/* 评论列表样式 */
.comments-container {
    margin-top: 15px;
    padding-left: 20px;
}

.comment-item {
    background-color: rgba(255, 255, 255, 0.4);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 13px;
}

.comment-nickname {
    font-weight: bold;
    color: #444;
}

.comment-time {
    color: #999;
    font-size: 11px;
}

.comment-content {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.comment-email {
    color: #666;
    font-size: 11px;
    margin-top: 3px;
    font-style: italic;
}